﻿using GiteePlugin.Core.Auth;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GiteePlugin.Core.Authentication.AuthProvider
{
    /// <summary>
    /// 多租户授权
    /// </summary>
    public class MultiTenantAuthProvider : IGiteeAuthProvider
    {
        private readonly IDictionary<string, DistributedAuthTokenCache> _tenantTokens;

        public Task<string> BuildAuthorizationUrl(string state)
        {
            throw new NotImplementedException();
        }

        public Task<string> GetAccessTokenAsync(string tenantId)
        {
            // 根据租户ID返回对应Token
            return Task.FromResult("");
        }

        public Task ExchangeCodeAsync(string code)
        {
            throw new NotImplementedException();
        }
    }
}
